package com.xxh.springclouddemo.consumer.service.impl;

import com.xxh.springclouddemo.common.pojo.Student;
import com.xxh.springclouddemo.consumer.interfaceApi.OpenfeignApi;
import com.xxh.springclouddemo.consumer.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author xxh
 * @Date 2024/4/14 16:14
 */
@Service
public class ConsumerServiceImpl implements ConsumerService {



    @Autowired
    private OpenfeignApi openfeignApi;

    @Override
    public List<Student> getStudent() {
        return openfeignApi.getStudent();
    }




}
